package com.mryin.performance.service.impl;

import com.mryin.performance.pojo.Permission;
import com.mryin.performance.mapper.PermissionMapper;
import com.mryin.performance.service.PermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MRYIN
 * @since 2021-03-08
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper ;

    @Override
    public List<Permission> getAllPermissionsByUid(String id) {
        return permissionMapper.getAllPermissionsByUid(id);
    }
}
